package czk.jvm.lecture.classloader;

public class MyTest18_1 {
    public static void main(String[] args) throws ClassNotFoundException {

        MyTest16 loader1=new MyTest16("loader1");
        //将MySample放在C:\java\jdk1.8\jre\classes下，此时由于双亲委派机制就会由bootstrapclassloader加载
        Class<?> aClass = loader1.loadClass("czk.jvm.lecture.classloader.MySample");
        //结果是null
        System.out.println(aClass.getClassLoader());
    }


}
